package com.archetypus.projectschedule.common.dto.activities;

import java.io.Serializable;
import java.util.Collection;

import com.archetypus.projectschedule.common.dto.involvements.Involvement;
import com.archetypus.projectschedule.common.dto.projects.Project;

public class Activity implements Serializable {
	private static final long serialVersionUID = 2181475253495320313L;
	private ActivityKey activityKey;
	private String name;
	private String description;
	private Project project;
	private Collection<Involvement> contribution;
	
	public ActivityKey getActivityKey() {
		return activityKey;
	}
	public void setActivityKey(ActivityKey activityKey) {
		this.activityKey = activityKey;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public Project getProject() {
		return project;
	}
	public void setProject(Project project) {
		this.project = project;
	}
	public Collection<Involvement> getContribution() {
		return contribution;
	}
	public void setContribution(Collection<Involvement> contribution) {
		this.contribution = contribution;
	}
	public boolean addInvolvement(Involvement involvement) {
		return contribution.add(involvement);
	}
	public boolean removeInvolvement(Involvement involvement) {
		return contribution.remove(involvement);
	}	
}
